package com.gumanx;

import net.minecraft.entity.Entity;
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
import net.minecraft.entity.ai.EntityAIHurtByTarget;
import net.minecraft.entity.ai.EntityAINearestAttackableTarget;
import net.minecraft.entity.ai.EntityAIWander;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.passive.EntityWaterMob;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.util.MathHelper;
import net.minecraft.world.World;

public class EntityMobKraken extends EntityWaterMob{

	public EntityMobKraken(World par1World) {
		super(par1World);
		this.texture = "/mods/gumanx/textures/kraken.png";
		this.moveSpeed = 0.3F;
        this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, this.moveSpeed, false));
        this.tasks.addTask(3, new EntityAIWatchClosest(this, EntityPlayer.class, 6.0F));
        this.tasks.addTask(4, new EntityAIWander(this, this.moveSpeed));
        this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
        this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 16.0F, 0, true));
	}
	
	public int getAttackStrength(Entity par1Entity)
    {
    return 8;
    }
	
	protected boolean isAIEnabled()
    {
        return true;
    }

	public int getMaxHealth() {
		return 150;
	}
	
	 public String getTexture()
	    {
	return "/mods/gumanx/textures/kraken.png";
	    }

	public int getTotalArmorValue()
	    {
	        return 6;
	    }

	protected String getLivingSound()
	    {
	        return null;
	    }

	    protected String getHurtSound()
	    {
	        return null;
	    }
	    
	    protected String getDeathSound()
	    {
	        return null;
	    }
	    
	    protected int getDropItemId()
	    {
	        return _GumanxModBase.ItemIngotXerorium.itemID;
	    }
	
}
